.class Lcom/estrongs/android/pop/app/filetransfer/p$a;
.super Ljava/lang/Thread;
.source "WifiScanUtil.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/pop/app/filetransfer/p;->a(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/estrongs/android/pop/app/filetransfer/p;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/filetransfer/p;Ljava/lang/String;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/p$a;->b:Lcom/estrongs/android/pop/app/filetransfer/p;

    iput-object p2, p0, Lcom/estrongs/android/pop/app/filetransfer/p$a;->a:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .line 1
    :goto_0
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/p$a;->b:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/filetransfer/p;->a(Lcom/estrongs/android/pop/app/filetransfer/p;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 2
    new-instance v0, Les/sl;

    invoke-direct {v0}, Les/sl;-><init>()V

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/pop/app/filetransfer/p$a;->a:Ljava/lang/String;

    iput-object v1, v0, Les/sl;->a:Ljava/lang/String;

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/pop/app/filetransfer/p$a;->b:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-static {v1}, Lcom/estrongs/android/pop/app/filetransfer/p;->b(Lcom/estrongs/android/pop/app/filetransfer/p;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Les/sl;->b:Ljava/lang/String;

    const-string v1, "receive"

    .line 5
    iput-object v1, v0, Les/sl;->c:Ljava/lang/String;

    .line 6
    invoke-virtual {v0}, Les/sl;->a()Ljava/lang/String;

    move-result-object v0

    .line 7
    invoke-virtual {v0}, Ljava/lang/String;->getBytes()[B

    move-result-object v0

    .line 8
    new-instance v1, Ljava/net/DatagramPacket;

    array-length v2, v0

    iget-object v3, p0, Lcom/estrongs/android/pop/app/filetransfer/p$a;->b:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-static {v3}, Lcom/estrongs/android/pop/app/filetransfer/p;->c(Lcom/estrongs/android/pop/app/filetransfer/p;)Ljava/net/InetAddress;

    move-result-object v3

    const/16 v4, 0x18c7

    invoke-direct {v1, v0, v2, v3, v4}, Ljava/net/DatagramPacket;-><init>([BILjava/net/InetAddress;I)V

    .line 9
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/p$a;->b:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/filetransfer/p;->d(Lcom/estrongs/android/pop/app/filetransfer/p;)Ljava/net/MulticastSocket;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/p$a;->b:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/filetransfer/p;->d(Lcom/estrongs/android/pop/app/filetransfer/p;)Ljava/net/MulticastSocket;

    move-result-object v0

    invoke-virtual {v0}, Ljava/net/MulticastSocket;->isClosed()Z

    move-result v0

    if-nez v0, :cond_0

    .line 10
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/p$a;->b:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/filetransfer/p;->d(Lcom/estrongs/android/pop/app/filetransfer/p;)Ljava/net/MulticastSocket;

    move-result-object v0

    invoke-virtual {v0, v1}, Ljava/net/MulticastSocket;->send(Ljava/net/DatagramPacket;)V

    :cond_0
    const-wide/16 v0, 0xbb8

    .line 11
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 12
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_1
    return-void
.end method
